const Mock = require('mockjs')
const user = require('./user')
const table = require('./table')
// 加载其他模块
const mocks = [
  ...user,
  ...table
]

for (const i of mocks) {
  Mock.mock(new RegExp(i.url), i.type || 'get', () => i.response())
}
export default Mock
